dict = {}
dict['one'] = "This is one"
dict[2] = "This is two"

tinydict = {'name': 'runoob','code':6734, 'dept': 'sales'}
 
print(dict['one']) #输出键为one的值
print(dict[2])     #输出键为2的值
print(tinydict)    #输出完整字典
print(tinydict.keys())   #输出所有键
print(tinydict.values()) #输出所有值
